import concrete_colleague.HouseOwner;
import concrete_colleague.Tenant;
import concrete_mediator.MediatorStructure;

public class Client {

    public static void main(String[] args) {
        MediatorStructure mediator = new MediatorStructure();

        Tenant tenant = new Tenant("李四", mediator);
        HouseOwner owner = new HouseOwner("张三", mediator);

        mediator.setHouseOwner(owner);
        mediator.setTenant(tenant);

        tenant.contact("房租多少钱");

        owner.contact("2000");

    }
}
